import request from '@/utils/request'

// 查询出入库单据明细列表
export function listStockItem(query) {
  return request({
    url: '/team/stockItem/list',
    method: 'get',
    params: query
  })
}

// 查询出入库单据明细详细
export function getStockItem(id) {
  return request({
    url: '/team/stockItem/' + id,
    method: 'get'
  })
}

// 新增出入库单据明细
export function addStockItem(data) {
  return request({
    url: '/team/stockItem',
    method: 'post',
    data: data
  })
}

// 修改出入库单据明细
export function updateStockItem(data) {
  return request({
    url: '/team/stockItem',
    method: 'put',
    data: data
  })
}

// 删除出入库单据明细
export function delStockItem(id) {
  return request({
    url: '/team/stockItem/' + id,
    method: 'delete'
  })
}
